<div class="modal fade" id="modal-addIpPurchase" style="">
    <div class="modal-dialog">
        <form action="{{url('user/ip/addIpPay')}}" method="post" enctype="multipart/form-data">
            {{ csrf_field() }}
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span></button>
                    <h3 class="modal-title" style="text-align: center">新增购买</h3>
                </div>
                <div class="modal-body">
                    <div class="row" style="margin-top: 2%">
                        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-2">
                            <input type="text" class="form-control" placeholder="名称" id="name" name="name" style="border-radius: 5px">
                        </div>
                    </div>
                    <div class="row" style="margin-top: 2%">
                        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-2">
                            <select class="form-control" style="border-radius: 5px" id="first" name="first" onchange="getType($(this));">
                                <option value="-1">类型</option>
                                @foreach($first_type as $k =>$v)
                                    <option value="{{$v['id']}}">{{$v['name']}}</option>
                                @endforeach
                            </select>
                        </div>
                    </div>
                    <div class="row" style="margin-top: 2%">
                        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-2">
                            <select class="form-control" style="border-radius: 5px" id="second" name="second">
                                <option value="-1">类别</option>
                            </select>
                        </div>
                    </div>
                    <div class="row" style="margin-top: 2%">
                        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-2">
                            <select class="form-control" style="border-radius: 5px" id="is_authorize" name="is_authorize">
                                <option value="-1">是否可加价</option>
                                <option value="1">是</option>
                                <option value="0">否</option>
                            </select>
                        </div>
                    </div>
                    <div class="row" style="margin-top: 2%">
                        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-2">
                            <input type="text" class="form-control" placeholder="最低出价" id="lowest_price" name="lowest_price" style="border-radius: 5px">
                        </div>
                    </div>
                    <div class="row" style="margin-top: 2%">
                        <div class="col-lg-8 col-md-8 col-sm-12 col-xs-12 col-lg-offset-2 col-md-offset-2">
                            <textarea class="form-control" rows="3" id="supplement" name="supplement" style="border-radius: 5px" placeholder="补充备注"></textarea>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
                    <div class="row">
                        <div class="col-lg-8 col-md-8 col-lg-offset-2 col-md-offset-2 ">
                            <button type="submit" class="btn btn-primary" style="background-color: #0080ff;border: #0080ff;width: 100%">确定
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>

